package com.example.superoa.model.service;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.example.superoa.model.mappers.BecomeWokerMapper;
import com.example.superoa.model.vo.BecomeVo;

@Service
@Transactional(rollbackFor=Exception.class)
public class BecomeService {
	@Autowired
	private BecomeWokerMapper becomapper;
	
	//查询转正数据
	public List<BecomeVo> selectbecome(){
		return becomapper.selectbecome();
	}
	//申请转正
	public void becomestate(String bwr_state,int bwr_id) {
		becomapper.becomestate(bwr_state, bwr_id);
	}
	//根据id获取数据
	public BecomeVo selectId(int bwr_id) {
		return becomapper.selectId(bwr_id);
	}
	//查询结果
	public List<BecomeVo> selectjieguo(){
		return becomapper.selectjieguo();
	}
}
